<?php
    $type = $data['daily_type'];
    switch($type){
        case 'hot':
            $title = '热销榜';
            break;
        case 'new':
            $title = '新书榜';
            break;
        case 'click':
            $title = '点击榜';
            break;
        case 'continue':
            $title = '连载榜';
            break;
        case 'all':
            $title = '完本榜';
            break;
        default :
            break;
    }
    
    $list = $data['list']['list'];
?>
<!DOCTYPE HTML>
<html>
    <head lang="zh-CN">
        <meta charset="UTF-8">
        <title>享点阅读(榜单推荐_<?php echo $title;?>)</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <!-- 设置初始缩放比例为1.0，使用设备宽度  -->
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
        <!-- 在iOS下开启全屏模式  -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <!-- 隐藏 Sarafi 状态栏  -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link href="/public/img/images/icon/xd.ico" rel="shortcut icon" />
        <link href="/public/css/comment/wapReset.css" rel="stylesheet"/>
        <link rel="stylesheet" type="text/css" href="/public/css/comment/header_top.css">
        <link rel="stylesheet" type="text/css" href="/public/css/comment/homepage_list.css">
        <link rel="stylesheet" type="text/css" href="/public/css/billboard.css">
        <link rel="stylesheet" type="text/css" href="/public/css/comment/messageInfo.css">
        <script src="/public/js/rem/rem.js"></script>
    </head>
    <body scroll="no">
        <header>

            <div class="down_app return_back">
                <img src="/public/img/images/tabbar-back.png">
            </div>
            <div class="logo">
                <?php echo $title;?>
            </div>
            <div class="search">
                <img src="/public/img/images/tabbar-search.png" alt="搜索"  class="search_hot" />
                <img src="/public/img/images/tabbar-分类.png" alt="分类" class="classifty_btn" check="false"/>
            </div>
        </header>
        <div class="classifty">
            <ul class="classifty_nav">
                <li>
                    <img src="/public/img/images/newBookicon.png">
                    <p>新书</p>
                </li>
                <li>
                    <img src="/public/img/images/winicon.png">
                    <p>排行</p>
                </li>
                <li>
                    <img src="/public/img/images/classicon.png">
                    <p>分类</p>
                </li>
                <li>
                    <img src="/public/img/images/besticon.png">
                    <p>免费</p>
                </li>
            </ul>
        </div>
        <nav>
            <li <?php echo $type == '1' ? 'class="active" data-page="'.$data['params']['page'].'"' : 'data-page="1"';?>>日 榜
                <a href="javascript:;"></a>
            </li>
            <li <?php echo $type == '2' ? 'class="active" data-page="'.$data['params']['page'].'"' : 'data-page="1"';?>>周 榜
                <a href="javascript:;"></a>
            </li>
            <li <?php echo $type == '3' ? 'class="active" data-page="'.$data['params']['page'].'"' : 'data-page="1"';?>>月 榜
                <a href="javascript:;"></a>
            </li>
        </nav>
    <content>
        <div class="homepage_list" <?php echo $type == '1' ? 'style="display:block"' : 'style="display:none"';?>>
            <input type='hidden' value='1' class='hide'>
            <?php if($type == '1'):?>
                <?php foreach($list as $n):?>
                    <li data-id="<?php echo $n['novel_id'];?>">
                        <img src="<?php echo $n['novel_cover'];?>">
                        <div>
                            <h4><?php echo $n['novel_title'];?></h4>
                            <h6><?php echo $n['novel_introduction'];?></h6>
                            <p>
                                <span>作者 <?php echo $n['novel_author'];?></span>
                                <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                                <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                            </p>
                        </div>
                        <a href="javascript:;"></a>
                    </li>
                <?php endforeach;?>
            <?php endif;?>
        </div>
        <div class="homepage_list" <?php echo $type == '2' ? 'style="display:block"' : 'style="display:none"';?>>
            <input type='hidden' value='1' class='hide'>
            <?php if($type == '2'):?>
                <?php foreach($list as $n):?>
                    <li>
                        <img src="<?php echo $n['novel_cover'];?>">
                        <div>
                            <h4><?php echo $n['novel_title'];?></h4>
                            <h6><?php echo $n['novel_introduction'];?></h6>
                            <p>
                                <span>作者 <?php echo $n['novel_author'];?></span>
                                <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                                <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                            </p>
                        </div>
                        <a href="javascript:;"></a>
                    </li>
                <?php endforeach;?>
            <?php endif;?>
        </div>
        <div class="homepage_list" <?php echo $type == '3' ? 'style="display:block"' : 'style="display:none"';?>>
            <input type='hidden' value='1' class='hide'>
            <?php if($type == '3'):?>
                <?php foreach($list as $n):?>
                    <li>
                        <img src="<?php echo $n['novel_cover'];?>">
                        <div>
                            <h4><?php echo $n['novel_title'];?></h4>
                            <h6><?php echo $n['novel_introduction'];?></h6>
                            <p>
                                <span>作者 <?php echo $n['novel_author'];?></span>
                                <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                                <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                            </p>
                        </div>
                        <a href="javascript:;"></a>
                    </li>
                <?php endforeach;?>
            <?php endif;?>
        </div>
    </content>
    <div class="message_info_alert">
        <span>修改成功</span>
    </div>
</body>
<script type="text/javascript" src="/public/js/jquery1.7.2.js"></script>
<script type="text/javascript" src="/public/js/comment.js"></script>
<script type="text/javascript" src="/public/js/billboard.js"></script>
<script type="text/javascript">
    var type = "<?php echo $data['type'];?>";
</script>
</html>